#!/usr/pkg/bin/bash

  n=0; while :; do
	n="`expr $n + 1`";
       head -c 100 </dev/urandom >/tmp/test.$n.l1;
       ./bin2hex </tmp/test.$n.l1 >/tmp/test.$n.u8 || break;
       ./hex2bin </tmp/test.$n.u8 >/tmp/test.$n.l1-out || break;
       diff -q /tmp/test.$n.l1 /tmp/test.$n.l1-out || break;
       rm -f /tmp/test.$n.*;
       echo Ok: $n;
 done; echo Error: $n

